class TeamProjectController < ApplicationController
  
  def index
    listproject
      render('listproject')
  end
  
  def listproject
     @teamprojects = TeamProject.all
    
  end
  
  def projectdashboard
    @teamproject = TeamProject.find(params[:id])
  end
  
  def newproject
    @teamproject = TeamProject.new
  end
  
  def createproject
    @teamproject = TeamProject.new(params[:teamproject])
    if @teamproject.save
      redirect_to(:action => 'listproject')
    else
      render('newproject')
    end
  end
  
  
end
